<?php 
define('Copyright', 'Author QQ: 765858558');
define('ROOT_PATH', $_SERVER["DOCUMENT_ROOT"].'/');
include_once ROOT_PATH.'functioned/cheCookie.php';
include_once ROOT_PATH.'functioned/peizhi.php';
$name = base64_decode($_COOKIE['g_user']);
$db=new DB();
$sql = "SELECT * FROM g_zhudan where g_nid='$name' ORDER BY g_id DESC LIMIT 10";
$result1 = $db->query($sql, 1);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/js/jquery.js"></script>
<SCRIPT type="text/javascript">
    if (top.location == self.location) top.location.href = "../"; 
</script>
    <link href="css/left.css" rel="stylesheet" type="text/css">
    <script src="js/Forbid.js" type="text/javascript"></script><meta http-equiv="Refresh" content="100"> 
</head>
<body oncopy="return false" oncut="return false" onselectstart="return false">

<table border='0' cellpadding='0' cellspacing='1' class='t_list' width='231'>
<tr><td class='t_td_caption_1' width='66'>會員帳戶</td><td class='t_td_text' width='165'><?php echo $user[0]['g_name']?></td></tr>


<tr>
  <td class='t_td_caption_1'>盤　　口</td>
  <td class='t_td_text'><?php echo strtoupper($user[0]['g_panlu'])?>盤</td>
</tr>
<tr><td class='t_td_caption_1'>信用額度</td><td class='t_td_text'><?php echo number_format(is_Number($user[0]['g_money']))?></td></tr>
<tr><td class='t_td_caption_1'>可用金額</td><td id="currentCredits" class='t_td_text'><?php echo number_format(is_Number($user[0]['g_money_yes']))?></td></tr>
<tr><td class='t_td_caption_1'>刷新頁面</td><td class='t_td_text'><input name="button" type="button" style="background:#CCCCCC; width:60px; cursor:pointer" onclick="javascript:location.href ='?<?php echo time()?>'" value="刷新" /></td></tr>
<?php if($cz=="1"){
echo "
<tr>
	<td colspan=\"5\" class=\"t_td_text\" >
	<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\">
                    <tr>
                        <td class=\"JZRCB\"><a href=\"chongzhi.php\" target=\"mainFrame\" style=\"color:#FFFFFF;\">在线充值</a></td>
                   
                        <td class=\"JZRCB\"><a href=\"qukuan.php\" target=\"mainFrame\"  style=\"color:#FFFFFF;\">在线取款</a></td>
                    </tr>
	</table>
	</td>
	</tr>";
	}?>
	

<!--投註成功-->
<table border="0" cellpadding="0" cellspacing="1" style="margin-top:0px;width:231px">
<tr>
  <td class='t_list_caption' colspan='2'>
<span id="t"></span>开奖结果(最近10期)
</td></tr>
<tr><td  colspan='2' id="t_jk">
<span align="center">请稍后...</span></td></tr>
</table>
<!--投註成功-->
<script>
function get_kj(){
	$.get('/user/gettopresult.php',function (d){
		var result = $.parseJSON(d);
		$("#t_jk").html(result.list);
		$("#t").html(result.t);
	})
}
$(function(){get_kj();});
</script>
<script>
if (typeof(parent.mainFrame.Update_JV) != "undefined") {    
parent.mainFrame.Update_JV("03211004262044");
}

function  setCurrentCredits(d) {
    document.getElementById("currentCredits").innerHTML = parseInt(d);
}
</script>

</body>

</html>
